package com.hnjd.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.hnjd.entity.Types;

public interface TypeMapper {

	@Select("select * from types")
	public List<Types> findAllTypes();
	
	@Update("update types set id=#{typeid} where name=#{typename}")
	public void goodUpdate(@Param("typeid")Integer id,@Param("typename")String name);
	
}
